﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.MedicalDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PatientDomain
{
  public class PatientTreatment
    {
        #region Properties
        public Guid ID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public DateTime StartedOnDateTime { get; set; }
        public DateTime? DiscontinuedOn { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
      [ForeignKey("Patient")]
        public Guid PatientID { get; set; }
      [ForeignKey("TreatmentType")]
        public int TreatmentTypeID { get; set; }
      [ForeignKey("Status")]
        public int TreatmentStatusID { get; set; } 
        #endregion

        #region NavigationalProperties
        public virtual Patient Patient { get; set; }
        public virtual TreatmentType TreatmentType { get; set; }
        public virtual TreatmentStatus Status { get; set; } 
      public virtual ICollection<Medication> Medications { get; set; }
        public virtual ICollection<Diagnosis> Diagnosis { get; set; }
        public virtual ICollection<Consultation> Consultations { get; set; }
        #endregion
    }
}
